
// 订单服务api

import axios from "axios";
import service from "../utils/request.js";

// 查询
export function searchServices(obj) {

  return service.get("/orderServices/all", { params: obj }).then((res) => {
    return res;
  });

}


// 修改
export function putServices(id,obj) {
  return service.put(`/orderServices/${id}`, obj).then((res) => {
    return res;
  });

}


// 增加
export function addServices(obj) {
  return service.get("/orderServices", obj).then((res) => {
    return res;
  });

}

// 删除
export function delServices(id) {
  return service.delete(`/orderServices/${id}`).then((res) => {
    return res;
  });

}
